package com.tencent.qcloud.tim.uikit.component.dialog

import android.content.Context
import com.lxj.xpopup.XPopup
import com.lxj.xpopup.impl.FullScreenPopupView
import com.tencent.qcloud.tim.uikit.R
import kotlinx.android.synthetic.main.dialog_no_modify_name.view.*

/** 
 * 查看信息


 * @date  2020/7/31  14:27
 * @version 1.0
 */
public class LookGroupInfoDialog(context: Context, private val title: String, private val content: String)
    : FullScreenPopupView(context) {

    companion object {
        fun load(context: Context, title: String, content: String) {
            XPopup.Builder(context)
                    .hasStatusBar(true)
                    .asCustom(LookGroupInfoDialog(context, title, content))
                    .show()
        }
    }

    override fun getImplLayoutId(): Int = R.layout.dialog_no_modify_name

    override fun onCreate() {
        super.onCreate()
        ivDismiss.setOnClickListener { dismiss() }
        tvTitle.text = title
        tvContent.text = content
    }



}